#!/usr/bin/perl

use strict;
use warnings;
use MyClass;

my $obj = MyClass->new({ load_plugins => [qw/ Hello /] });
$obj->hello; # autocall

#$obj->run_hook( hello => $args );

__END__
#$obj->hello; # hello world を表示
#print $obj->run_hook( 'bar' )->[0]; # bog を表示
#print $obj->baz; # news を表示

__END__
package MyClass::Plugin::Foo;
use strict;
use warnings;
use base 'Class::Component::Plugin';

sub plugin_method: Simple {
    my($plugin, $context, $args) = @_;
    warn "plugin method \n"; 
}

1;



